#ifndef __HEAD__
#define __HEAD__
#include "userTask.h"
#include "threadPool.h"
typedef struct train_s{
    int dataLength;
    char buf[1000];
}train_t;

typedef struct shareRes_s{
    int sockFd;
    char commandLine[1024];
}shareRes_t;

int recvFile(char *argv, int sockFd);
int recvn(int netFd, void *p, int n);
// int upload(char *argv,int sockFd);
int cd(int sockFd);
int ls(int sockFd);
int pwd(int sockFd);
int rm(int sockFd);
int makedir(int sockFd);
int upload(char *argv, int sockFd);
int removedir(int sockFd);
int tcpInit(char *ip, char *port, int *pSockFd);
int epollAdd(int fd, int epfd);
int epollDel(int fd, int epfd);
void* uploadFunc(void* arg);
void* downloadFunc(void* arg);
#endif